<!DOCTYPE html>
<html>
	<head>
		<?php echo $this->Html->charset(); ?>
		<title><?php echo $title_for_layout ? $title_for_layout.' - ' : ''; ?>IngressOtaku.com</title>
		
		<?php
			echo $this->fetch('meta');
			echo $this->Html->meta('icon');
			
			// Theme
			echo $this->Html->css(array('lib/bootstrap/bootstrap', 'lib/bootstrap/bootstrap-responsive', 'lib/bootstrap/united-theme', 'lib/bootstrap/justified-nav'));
			// Icon
			echo $this->Html->css(array('lib/font-awesome/css/font-awesome'));
			// Aditional CSS
			echo $this->Html->css(array('header', 'main'));
			
			echo $this->fetch('css');
			
			// Bootstrap.js
			echo $this->Html->script(array('lib/jquery-1.10.1.min', 'lib/bootstrap'));
			echo $this->fetch('script');
		?>
	</head>
	<body>
		<div class="container">
			<div id="header">
				<?php
					$otakuTag = $this->Html->tag('mark', 'Otaku');
					$dotCom = $this->Html->tag('small', '.com');
				?>
				<h1><?php
					echo $this->Html->link('Ingress'.$otakuTag.$dotCom, array('controller' => 'home','action' => 'index'), array('escape' => false))
				?></h1>
				<nav id="menu">
					<ul>
					</ul>
					<div class="clear-float"></div>
				</nav>
				
				<div class="navbar">
					<div class="navbar-inner">
						<div class="container">
							<ul class="nav">
								<li><a href="#">Destaques</a></li>
								<li><?php echo $this->Html->link("Eventos", array('controller' => 'eventos', 'action' => 'index')) ?></li>
								<li><?php echo $this->Html->link("Locais", array('controller' => 'locais', 'action' => 'index')) ?></li>
								<li><?php echo $this->Html->link("Promoções", array('controller' => 'promocoes', 'action' => 'index')) ?></li>
								<li><?php echo $this->Html->link("Minha Conta", array('controller' => 'usuario', 'action' => 'index')) ?></li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<?php echo $this->Session->flash(); ?>
			
			<div class="content">
				<?php echo $this->fetch('content'); ?>
			</div>
			
			<footer>
			<p>
				<span>Copyright&copy; 2013 - Guilherme Ventura & André Santana</span>
				<a class="pull-right" href="http://www.000webhost.com/" target="_blank" title="Web hosting provided by 000webhost.com">
					<img src="http://www.000webhost.com/images/80x15_powered.gif" alt="Web Hosting" width="80" height="15" border="0" />
				</a>
			</p>
			</footer>
		</div>
	</body>
</html>